home *** CD-ROM | disk | FTP | other *** search
- MSDOS UTILITIES BY JON DART - 09-SEP-86
-
- This disk contains a collection of utility programs, including
- several which mimic the operation of unix (tm) commands.
-
- All of these programs require MSDOS2 or 3. SHOW assumes that your
- computer is IBM-compatible at the BIOS level (it can be reassembled to
- produce a "generic MSDOS" version). LS is supplied in both generic
- and PC-dependent versions. The other programs are not at all machine-
- specific and should run on any MSDOS system.
-
- LS displays a sorted directory with file sizes. There are several
- such programs in the public domain, but all of the ones I have seen
- have deficiencies--they are too big, too slow, don't show the disk
- free space, can't display system files, and/or use tricks that render
- them unusable on my computer, which is NOT a perfect IBM clone. LS is
- designed to be easily adaptable to any "generic MSDOS" system, with at
- most minor modifications. There are two executable files on the disk:
- LS.EXE is "generic", and LS-PC.EXE is for IBM PCs and clones or near-
- clones that recognize IBM BIOS calls.
-
- To display system and hidden files, type "LS -A". To get a "long"
- listing with times and dates, type "LS -L".
-
- HEAD and TAIL are simple filters that display a few lines from the
- start or the end of a file, respectively. The general syntax for these
- programs is:
-
- HEAD -n filename
-
- n is the number of lines to display: e.g. "HEAD -50 FOO" displays
- the first 50 lines of "FOO". The default number of lines is 20; the
- maximum that can be specified is 65535. If no input file is specified,
- HEAD reads from the standard input, so it can be hooked to another
- program's output via a pipe. TAIL is used similarly.
-
- WC is a utility to count bytes, words and lines in a file. Like HEAD
- and TAIL, it defaults to the standard input if no input file is
- specified on the command line.
-
- SHOW is my adaptation of a CP/M bidirectional file display program.
- It shows a file on the screen, and allows you to scroll forward and
- backwards. If all you want to do is see the file, this is often more
- convenient than calling up your editor. Unlike TYPE, SHOW will display
- WordStar (tm) and WordPerfect (tm) files in more or less readable
- format. Type SHOW with no arguments to get instructions.
-
- MV is a general-purpose program to move files and directories
- between disks and directories. It is similar to the UNIX (tm) utility
- of the same name. With the R switch, MV treats directories
- recursively: that is, if it is told to move a directory, it will
- transfer all files found in that directory, AND all files in any
- subdirectories of it. Type MV with no arguments to get instructions.
-
- CP is virtually the same as MV, except that it copies files or
- directories, without deleting the originals. Type CP with no arguments
- to get instructions.
-
- RM deletes files and/or directories. It is similar to the MSDOS DEL
- command, but allows multiple files to be specified, and supports a
- number of options. Type RM with no arguments to get instructions.
- CAUTION: the F and R switches are potentially dangerous. Be sure you
- know what you are doing before you use them; if in doubt, experiment
- on a "junk" disk first.
-
- RO is a utility to make one or more file read-only. Files that are
- set "read-only" cannot be deleted by the ordinary MSDOS DEL command
- (it will respond "File not found" if you try this). They are also
- protected from deletion by the RM program (unless the F switch is
- used). Type RO to get instructions.
-
- RW is a utility to restore one or more files that have been set
- read-only back to ordinary read-write status. Type RW for
- instructions.
-
- CRC computes a cyclic redundancy code for one or more files. It
- writes the crc list to the standard output--it can be redirected into
- a file if you so desire. Users of Aztec C should note that this CRC
- utility is different from the one that comes with the Aztec C develop-
- ment system, and gives incompatible results (it is compatible with
- XMODEM).
-
- UPDATE is similar to the unix "touch" utility. It sets the time and
- date of one or more files to the current system time and date. Type
- UPDATE with no arguments for instructions.
-
- FDUMP is a simple utility for viewing and patching files in ASCII,
- hex, decimal or octal. It displays a command menu when it is run.
-
- -------------
- Notes on the source code: LS, HEAD, TAIL, MV, CP, RM and WC are
- written in assembly language and were assembled with MASM 4.0. All of
- these programs must be linked with ASM.LIB. The source code for the
- modules in ASM.LIB is in ASM.ARC. ASM.ARC also contains some include
- files needed for assembling the programs.
-
- RO, RW, CRC, UPDATE and FDUMP are written in Aztec C, and were
- compiled in the "small model" mode using version 3.20e of the
- optimizing compiler. They must be linked with the library B.LIB and
- with the standard Aztec library C.LIB (in that order). Note that
- B.LIB is in Aztec, not Microsoft, format. B.ARC contains the source
- for the object modules in B.LIB, and also some header files used by
- the c programs.
-
- These programs are PUBLIC DOMAIN and may be freely copied, used,
- modified, etc. for ANY purpose (the one thing you probably can't
- legally do is to copyright them yourself). I don't offer any
- guarantee of support for them, but I will generally fix bugs that are
- reported to me. Any comments, complaints, bug reports or suggestions
- for improvement should be sent to: Jon Dart, 6067 Carnegie St., San
- Diego, CA 92122.
-
-